package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommodityAdvisoryPriceSaveBO;
import com.ztgf.commodity.models.dto.BrandInfoDTO;
import com.ztgf.commodity.models.dto.CommodityAdvisoryPriceDTO;
import com.ztgf.commodity.models.vo.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 询价表服务
 *
 * @author chenyu.wang
 * @Date 2020-05-27 11:06:36
 */
public interface ICommodityAdvisoryPriceService extends IService<CommodityAdvisoryPriceDTO> {

    /**
     * description: 添加
     * param: [saveBO]
     * author: chenyu.wang
     * date: 2020-05-27
     * return: boolean
     */
    boolean add(CommodityAdvisoryPriceSaveBO saveBO);

    /**
     * description: 根据shopid查询询价结果
     * param: [shopId]
     * author: chenyu.wang
     * date: 2020-07-14
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityAdvisoryPriceVO>
     */
    List<CommodityAdvisoryPriceVO> queryInquiryResult(Long shopId, Integer sort);

    /*
     * @description:最终级类目
     * @author: chenyu.wang
     * @date: 2020-08-10
     * @param:
     * @return:
     */
    List<CommodityAllFinallyCategoryVO> queryAllFinallyCategory();

    /*
     * @description:查询所有品牌
     * @author: chenyu.wang
     * @date: 2020-08-10
     * @param:
     * @return:
     */
    List<BrandInfoDTO> queryAllBrand();

    /*
     * @description:根据分类id查询规格属性
     * @author: chenyu.wang
     * @date: 2020-08-10
     * @param:
     * @return:
     */
    List<SpecificationCategoryVO> getSpecificationCategory(Long categoryId, String condition);

    /*
     * @description:上传excel询价文件并返回结果
     * @author: chenyu.wang
     * @date: 2020-08-12
     * @param:
     * @return:
     */
    List<CommodityAdvisoryPriceVO> queryByFile(byte[] input);
}
